package com.agp.mapper;

import com.agp.entity.Menu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MenuMapper {
    /**
     * 根据角色查询菜单树
     * @param role
     * @return
     */
    List<Menu> selectMenuTreeByRole(Integer role);

    /**
     * 根据父级id查询子菜单
     * @param parentId
     * @return
     */
    List<Menu> selectSubMenuByParentId(Integer parentId,Integer role);


}
